﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Material.Material.Dtos
{
    public class MaterialInputDtos
    {
        public int Id {  get; set; }
        /// <summary>
        /// 出入库类型 (1.出库，2入库)
        /// </summary>
        [DisplayName("出入库类型")]
        public int Material_InOutType { get; set; } = 2;
        /// <summary>
        /// 入库单名称
        /// </summary>
        [DisplayName("入库单名称")]
        public string WarehouseReceiptName { get; set; }
        /// <summary>
        /// 入库单编号
        /// </summary>
        [DisplayName("入库单编号")]
        public string WarehouseReceiptNumber { get; set; }
        /// <summary>
        /// 入库日期
        /// </summary>
        [DisplayName("入库日期")]
        public DateTime WarehousingDate { get; set; }
       
        /// <summary>
        /// 采购单名称
        /// </summary>
        [DisplayName("采购单名称")]
        public string PurchaseOrdersName { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        [DisplayName("采购单号")]
        public string PurchaseOrdersNumber { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        [DisplayName("供应商名称")]
        public string SupplierName { get; set; }
      
        /// <summary>
        /// 来料检验名称
        /// </summary>
        [DisplayName("来料检验名称")]
        public string IncomingName { get; set; }
        /// <summary>
        /// 来料检验单号
        /// </summary>
        [DisplayName("来料检验单号")]
        public string IncomingNumber { get; set; }
        /// <summary>
        /// 领用数量/入库数量
        /// </summary>
        [DisplayName("入库数量")]
        public int Quantity { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        [DisplayName("生产日期")]
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        [DisplayName("结束日期")]
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 物料编号
        /// </summary>
        [DisplayName("物料编号")]
        public string MaterialNumber { get; set; }
      
        /// <summary>
        /// 物料名称
        /// </summary>
        [DisplayName("物料名称")]
        public string MaterialName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [DisplayName("规格型号")]
        public string Specifications { get; set; }
        /// <summary>
        /// 单位id
        /// </summary>
        [DisplayName("单位id")]
        public int? Unit_Id { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        [DisplayName("单位名称")]
        public string Unit_Name { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        [DisplayName("仓库名称")]
        public string Warehouse_Name { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        [DisplayName("库区名称")]
        public string Warehouse_Area { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        [DisplayName("库位")]
        public string Storage_location { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        [DisplayName("批次号")]
        public int? Batch { get; set; }
        /// <summary>
        /// 仓库负责人
        /// </summary>
        [DisplayName("仓库负责人")]
        public string Principal { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("状态")]
        public bool Status { get; set; }

     
    }

    /// <summary>
    /// 物料入库状态更新DTO
    /// </summary>
    public class MaterialInputStatusUpdateDto
    {
        /// <summary>
        /// 入库记录ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 新状态
        /// </summary>
        public bool Status { get; set; }
    }
}
